<script type="text/javascript" src="${basePath}/js/tds-portal.js"></script>
<div class="row border-bottom">
	<nav class="navbar navbar-static-top white-bg" role="navigation"
		style="margin-bottom: 0">
		<div class="navbar-header">
			<a class="navbar-minimalize minimalize-styl-2 btn btn-primary "
				href="#"><i class="fa fa-bars"></i> </a>
		</div>
		<ul class="nav navbar-top-links navbar-right">
			<li class="dropdown"><a class="dropdown-toggle count-info"
				data-toggle="dropdown" href="#"> <i
					class="fa fa-exclamation-circle"></i> <span
					class="label label-danger">${alertCount}</span>
			</a>
				<ul class="dropdown-menu dropdown-alerts">
					<#list alarm as item>
						<li>
							<a onclick="portal.forwardToAlarm('${item.type}')">
								<div>
									<i class="fa fa-exclamation-triangle fa-fw" style="color: #ce2417;"></i>
									<@spring.message code='alarm.type${item.type}'/> ${item.count} 
									<@spring.message code='alarm.place'/>
									<@spring.message code='alarm.alarm'/>
									<span class="pull-right text-muted small">${item.time} ${item.timeType}</span>
								</div>
							</a> 
						</li>
					<li class="divider"></li> </#list>
					<li>
						<div class="text-center link-block">
							<a href="${basePath}/system/alarm"> <strong><@spring.message code='dashboard.viewError'/></strong> <i
								class="fa fa-angle-right"></i>
							</a>
						</div>
					</li>
				</ul></li>
			<li class="dropdown"><a class="dropdown-toggle count-info"
				data-toggle="dropdown" href="#"> <i class="fa fa-user"></i>
			</a>
				<ul class="dropdown-menu dropdown-alerts">
					<li><a href="#">
							<div>
								<i class="fa fa-drupal fa-4x fa-fw"></i> ${user.name!}

							</div>
					</a></li>
					<li class="divider"></li>
					<li>
						<div>
							<span style="margin-left: 10px"><i class="fa fa-pencil"></i>
								<a href="#" onclick="portal.editInfo('${user.username!}')"><@spring.message code='dashboard.modifyInfo'/></a></span>
							<span class="pull-right "><i class="fa fa-key "></i> <a
								href="#" onclick="portal.editPassword('${user.username!}')"><@spring.message code='dashboard.modifyPassword'/></a></span>
						</div>
					</li>
				</ul></li>
			<li><a href="${basePath}/j_spring_security_logout""> <i
					class="fa fa-sign-out"></i> <@spring.message code="common.quit" />
			</a></li>
		</ul>
	</nav>
</div>
<form id="alarmForm" action="${basePath}/system/alarm" method="post">
	<input id="alarmInput" name="alarmInput" type="hidden">
</form>
<#--顶部栏 end-->
